module.exports = function(app){
    app.get('/home', function(req, res, next) {
        var TestModel = global.dbHelper.getModel("user");
        var TestEntity = new TestModel({
            name : "shiguoqing_name",
            password:"shiguoqing_pwd"
        });
        TestEntity.save(function(error,doc){
            if(error){
                console.log("error :" + error);
            }else{
                console.log(doc);
                res.send("添加成功！");
            }
        });
    });
};


